package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CheckGroupMapper {


    void setCheckGroupAndCheckItem(Map<String, Integer> map);
    void add(CheckGroup checkGroup);

    List<CheckGroup> findAll();

    CheckGroup findById(Integer id);

    Page<CheckGroup> selectByCondition(String queryString);



    List<Integer> findCheckItemIdsByCheckGroupId(Integer groupId);

    void edit(CheckGroup checkGroup);



    void deleteById(Integer id);
    void deleteAssociation1(Integer id);
    void deleteAssociation2(Integer id);
}
